<?php

namespace app\consts;

/**
 * 1-9 以内的错误表示基础设施错误
 * 10-19
 * 100
 */
class Code
{
    const OK = 0;
    const ERROR = 1;
    const ERROR_DATABASE = 2;
    const ERROR_NETWORK = 3;
    const TOKEN_EXPIRED = 11;
    const TOKEN_INVALID = 12;
    const LOGIN_REQUIRED = 13;
    const INVALID_PARAMS = 14;
    const BIZ_MODEL_ERROR = 15;
    const BIZ_MODEL_NOT_EXISTS = 16;
    const BIZ_RECORD_NOT_FOUND = 16;

    const USER_NOT_FOUND = 100;
}